PATHMac OS 8 Developer Documentation > Operating System Services > Multiprocessing Services >

Adding Multitasking Capability to Applications Using Multiprocessing Services

   

MPBlockCopy

Copies a block of memory.

void MPBlockCopy (
                     LogicalAddress source,
                     LogicalAddress destination,
                     ByteCount size);
source
A pointer of type LogicalAddress that specifies the starting address of the memory block you want to copy.
destination
A pointer of type LogicalAddress that specifies the location to which you want to copy the memory block.
size
A value of type ByteCount that specifies the number of bytes to copy.
DISCUSSION

As with all shared memory, your application must synchronize access to the memory blocks to avoid data corruption. MPBlockCopy ensures the copying stays within the bounds of the area specified by size , but the calling task can be preempted during the copying process.

VERSION NOTES

Introduced with Multiprocessing Services 1.0.


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)